//
//  OnlineHttp.m
//  Trucks
//
//  Created by 恩州科技 on 2018/7/19.
//  Copyright © 2018年 puyue.com. All rights reserved.
//

#import "OnlineHttp.h"

@implementation OnlineHttp
-(void)GetOnlieWithid:(NSString *)UserId withData:(RequestSuccess)sc failure:(RequestFail)fai
{

    NSMutableDictionary *post=[NSMutableDictionary new];
    [post setValue:UserId forKey:@"user_id"];
    
    [post setValue:[MyControl getObjectForKey:K_UUID] forKey:@"randnum"];
    [BaseHttp postRequestUrl:[NSString stringWithFormat:@"%@%@",REQ_BASE_URL,@"api/user/check_randnum"] params:post cache:NO
                      target:nil indicator:NO progressBlock:^(NSProgress *progress) {
                      } successBlock:^(id response) {
                          sc(response);
                      } failBlock:^(NSError *error) {
                          [SVProgressHUD dismiss];
                          
                          fai(nil);
                      }];
}
@end
